<html>
<head>
<meta charset="UTF-8">
<script src="index.js"></script>
</head>
<body>
<div>
<span>需要转换的内容：</span><textarea id="text"></textarea><button onclick="text.value=translate(text.value,0)">转ASCII</button><button onclick="text.value=translate(text.value,1)">转MRS</button>

</div>
</body>
</html>